<% content_for :css do %>
  <%= stylesheet_link_tag 'designers_index'  %>
<% end %>
<div class="left corner">
  <div class="title">
    各部门待发情况
  </div>
  <div class="body">
    <div class="project">
      <% Department.all.each do |department| %>
      <dl>
        <dt>
          <%= link_to_remote department.name,
                    :update => :right,
                    :url => designers_url(:department_id => department.id),
                    :method => :get,
                    :loading => short_loader('right', :height => 500)
            %>：
        </dt>
        <dd class="m"><b>￥</b><%= number_with_precision department.paying_total_amount, :precision => 1  %></dd>
      </dl>
      <% end %>
    </div>
  </div>
  <div class="total">
    <dl>
      <dt>共计：</dt>
      <dd class="m"><b>￥</b><%= number_with_precision DesignerWorkItem.paying_total_amount, :precision => 1 %></dd>
    </dl>
  </div>
</div>
<div id="right" class="right corner">
  <%= render :file => 'designers/index.js'   %>
</div>
